import java.io.File;
import java.util.Scanner;

/**
 * Created by dell on 2017/8/8.
 */
public class Tools {
    public void tool(String sc) {
        //Scanner sc=new Scanner(System.in);
        //sc.next();

        File[] file = new File(sc).listFiles();
        try {
            for (int i = 0; i < file.length; i++) {
                for (File f : file) {
                    if (f.isFile()) {
                        System.out.println(f);
                    }
                    if (f.isDirectory()) {
                        String a = new File(sc) + "/" + file[i].getName();
                        tool(a);
                    }
                }
                //System.out.println(i);
            }
        } catch (Exception e) {
        }

    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        new Tools().tool(sc.next());

        //String[] s=file.list();


        //String sf1=sc.next()+"/"+file.getName();
    }
}
